package com.zhong.learning.auto_paper.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.our.learning.infrastructure.po.Paper;
import com.our.learning.infrastructure.pojo.Response;
import com.zhong.learning.auto_paper.dto.AutoPaperDTO;
import org.springframework.stereotype.Service;

@Service
public interface AutoPaperService extends IService<Paper> {
    /**
     * 自动组卷
     * @param autoPaperDto 试卷信息
     * @return 返回创建的试卷ID
     */
    Response autoCompose(AutoPaperDTO autoPaperDto);

    /**
     * 根据ID获取试卷
     * @param id 试卷ID
     * @return 返回对应的试卷
     */
    Response getPaperById(Integer id);

    Paper getPaperByIdLocal(Integer id);

    /**
     * 获取所有试卷
     * @return 返回试卷列表
     */
    Response getAllByPage(Integer page, Integer perPage, Integer type, Integer id);

    Response getQuestionType();
}
